package cn.ycxy.lbl.search;

import cn.ycxy.lbl.common.config.CsCommonConfiguration;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.context.annotation.Import;

// 如果当前项目是dubbo调用中的生产者,必须添加@EnableDubbo注解
// 添加之后,在服务启动时,当前项目的所有服务才能正确的注册到Nacos
@EnableDubbo
//这里必须排除自动装配数据源, 因为引用了member服务, 会报没有设置DataSource错误
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, SecurityAutoConfiguration.class})
@Import({CsCommonConfiguration.class})
public class CsSearchWebApiApplication {

    public static void main(String[] args) {
        SpringApplication.run(CsSearchWebApiApplication.class, args);
    }

}
